class Notifier < ActionMailer::Base
   def confirmation_inscription(recipient, key)
     recipients ADMIN_EMAIL
     from       "confirmation@#{SERVER_ROOT}"
     subject    "Confirmation d'inscription à Hellaworld!"
     content_type "text/html"
     body :utilisateur => recipient, :reg_key => key
   end

   def lost_password(recipient)
     recipients recipient.email
     from       "confirmation@#{SERVER_ROOT}"
     subject    "Rappel du mot de passe d' Hellaworld!"
     body       :utilisateur => recipient
   end

   def change_ip(recipient, key)
     recipients recipient.email
     from       "confirmation@#{SERVER_ROOT}"
     subject    "Confirmation de la nouvelle IP pour votre compte Hellaworld!"
     content_type "text/html"
     body :utilisateur => recipient, :reg_key => key
   end
end
